<?php
class Znvuser extends AppModel {

	var $name = 'Znvuser';
	var $validate = array(
		'manv' => array('notempty'),
		'donvi_id' => array('numeric'),
		'chucdanh_id' => array('numeric'),
		'tennv' => array('notempty'),
		'conlam' => array('numeric')
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
		'Donvi' => array(
			'className' => 'Donvi',
			'foreignKey' => 'donvi_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Chucdanh' => array(
			'className' => 'Chucdanh',
			'foreignKey' => 'chucdanh_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'User' => array(
			'className' => 'User',
			'foreignKey' => 'user_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

}
?>